package cn.sdormitory.common;

import lombok.Data;
import lombok.experimental.Accessors;

@Data
@Accessors(chain = true)
public class IdAndName<Id> {
    private Id id;
    private String name;

    public static <T> IdAndName<T> generate(T id,String name){
        return new IdAndName<T>().setId(id).setName(name);
    }
}
